package com.zwj.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.zwj.entity.ZOrderMaster;


public interface ZOrderMasterService {
	
	//查询所有订单
	public List<ZOrderMaster> selectAll();
	//查询单个订单
	public List<ZOrderMaster> selectOne(Map<String,Object> map);
	//删除订单
	public boolean deleteOrderMaster(@Param("buyer_name")String buyer_name);
	//模糊查询
	public List<ZOrderMaster> selectByLikeOrderMaster(ZOrderMaster orderMaster);
	public List<ZOrderMaster> selectByLikebuyer_name(String buyer_name);
	//依据buyer_name查询
	public ZOrderMaster selectBybuyer_name(String buyer_name);
	//修改收货地址
	public boolean updateAddress(ZOrderMaster orderMaster);
	
	public int addOrderMaster(ZOrderMaster orderMaster);
	
	public boolean upStatus(int order_id);

}
